<include file="Inc/header" />
<script type="text/javascript">
    function submitFun(act)
    {
        form1.action.value = act;
        form1.submit();
    }
</script>
<style>
    .check_box{height: 20px;width: 30px;}
</style>
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <form name='form1' action="{:U('Admin/Teacher/showAll')}" method="get">
                    <ul class="content-box-tabs">
                        <li>关键字：<input class="ui-textbox search_box" name="kw" value="{$_POST['kw']}"
                                       placeholder="姓名/身份证/电话/学科"/></li>
                        <li><select name="zhicheng">
                            <option value="-1"
                            <if condition="$_REQUEST['zhicheng'] eq '-1' "> selected='selected'</if>
                            >职称</option>
                            <option value="二级教师"
                            <if condition="$_REQUEST['zhicheng'] eq '二级教师' "> selected='selected'</if>
                            >二级教师</option>
                            <option value="一级教师"
                            <if condition="$_REQUEST['zhicheng'] eq '一级教师' "> selected='selected'</if>
                            >一级教师</option>
                        <option value="高级教师"
                        <if condition="$_REQUEST['zhicheng'] eq '高级教师' "> selected='selected'</if>
                            >高级教师</option>

                        </select></li>
                        <li><select name="sex">
                            <option value="-1"
                            <if condition="$_REQUEST['zhicheng'] eq '-1' "> selected='selected'</if>
                            >性别</option>
                            <option value="男"
                            <if condition="$_REQUEST['zhicheng'] eq '男' "> selected='selected'</if>
                            >男</option>
                            <option value="女"
                            <if condition="$_REQUEST['zhicheng'] eq '女' "> selected='selected'</if>
                            >女</option>
                        </select></li>
                        <li><select name="xueli">
                            <option value="-1"
                            <if condition="$_REQUEST['zhicheng'] eq '-1' "> selected='selected'</if>
                            >学历</option>
                            <option value="本科"
                            <if condition="$_REQUEST['zhicheng'] eq '本科' "> selected='selected'</if>
                            >本科</option>
                            <option value="专科"
                            <if condition="$_REQUEST['zhicheng'] eq '专科' "> selected='selected'</if>
                            >专科</option>
                        </select></li>

                        <li><input type="hidden" id='actioning' name="action" value="cha"/>
                            <button class="ui-button add_goods_type" rel="orange" type="button"
                                    onclick="submitFun('cha');">查询
                            </button>
                            <button class="ui-button add_goods_type" rel="orange" type="button"
                                    onclick="submitFun('excel');">导出数据
                            </button>
                            </td>
                        </li>
                    </ul>
                    <div class="clear"></div>

            </div>
            <!-- End .content-box-header -->
            <div class="content-box-content">
                <div class="tab-content default-tab" id="tab1">

                    <table>
                        <thead>
                        <tr>
                            <td colspan="2">导出字段：</td>
                            <td colspan="8">
                             <input type="checkbox" name='fields[]' value="name" class="check_box">姓名
                                <input type="checkbox" name='fields[]' value="sex" class="check_box">性别
                                <input type="checkbox" name='fields[]' value="ID_number" class="check_box">身份证号
                                <input type="checkbox" name='fields[]' value="zhicheng" class="check_box">职称
                                <input type="checkbox" name='fields[]' value="zhiwu" class="check_box">职务
                                <input type="checkbox" name='fields[]' value="birthday" class="check_box">生日
                                <input type="checkbox" name='fields[]' value="dishi" class="check_box">地市
                                <input type="checkbox" name='fields[]' value="xianqu" class="check_box">县区
                                <input type="checkbox" name='fields[]' value="canjia_date" class="check_box">参加工作时间
                                <input type="checkbox" name='fields[]' value="renzhi_date" class="check_box">任职时间
                                <input type="checkbox" name='fields[]' value="xueli" class="check_box">学历
                                <input type="checkbox" name='fields[]' value="xueke" class="check_box">专业
                                <input type="checkbox" name='fields[]' value="renjiao_xueke" class="check_box">任教学科
                                <input type="checkbox" name='fields[]' value="mobile" class="check_box">手机
                                <input type="checkbox" name='fields[]' value="QQ" class="check_box">QQ
                                <input type="checkbox" name='fields[]' value="wxid" class="check_box">微信ID
                                <input type="checkbox" name='fields[]' value="email" class="check_box">email
                                <input type="checkbox" name='fields[]' value="zigezheng" class="check_box">教师资格证号
                                <input type="checkbox" name='fields[]' value="jixujiaoyu" class="check_box">继续教育号
                                <input type="checkbox" name='fields[]' value="xueduan" class="check_box">学段

                                </form>
                            </td>
                        </tr>
                        <tr>
                            <!--th>
                                <input class="check-all" type="checkbox"/>
                            </th-->
                            <th>序号</th>
                            <th width="60">姓名</th>
                            <th>性别</th>
                            <th>生日</th>
                            <th>身份证号/资格证号</th>
                            <th>电话/QQ</th>
                            <th>职称</th>
                            <th>学历及专业</th>
                            <th>参加工作时间</th>
                            <th>任教学科</th>
                            <th>操作</th>
                        </tr>
                        </thead>

                        <tfoot>
                        <tr>
                            <td colspan="3">
                                <span style="float:right;">总数：{$count}</span>
                            </td>
                            <td colspan="10">
                                <div class="pagination">{$pageControl}</div>
                                <!-- End .pagination -->
                                <div class="clear"></div>
                            </td>
                        </tr>
                        </tfoot>
                        <tbody>
                        <volist name="stus" id="user">
                            <tr>

                                <!--td>
                                    <input type="checkbox"/>
                                </--td-->
                                <td>{$user['id']}</td>
                                <td>{$user['name']}</td>
                                <td>{$user['sex']}</td>
                                <td>{$user['birthday']}</td>
                                <td>{$user['id_number']}<br>
                                    {$user['zigezheng']}
                                </td>
                                <td>{$user['mobile']}<br>{$user['qq']}</td>
                                <td>{$user['zhicheng']}</td>
                                <td>{$user['xueli']}<br>{$user['xueke']}</td>
                                <td>{$user['canjia_date']}</td>
                                <td>{$user['renjiao_xueke']}</td>
                                <td>
                                    <!-- Icons -->
                                    <a href="{:U('Admin/Teacher/showUpdate',array('id'=>$user['id']))}" title="Edit">
                                        <img src="__PUBLIC__/images/icons/pencil.png" alt="Edit"/></a>
                                    <a href="{:U('Admin/Teacher/del',array('id'=>$user['id']))}" title="Delete"><img
                                            src="__PUBLIC__/images/icons/cross.png" alt="Delete"/></a>
                                </td>

                            </tr>
                        </volist>

                        </tbody>
                    </table>
                </div>
                <!-- End #tab1 -->

            </div>
            <!-- End .content-box-content -->
        </div>

        <include file="Inc/footer"/>